/*
 *	dfregexcache.c
 *	© 2009 DigiFi Limited
 *
 *	Implementation of the regex cache using a randomize
 *  binary search tree
 *
 */


#include "../headers/dfregexcache.h"
#include "util/rbst.h"




int dfregexcache_get(char* regex_name, void** compiled_regex) {
	return rbst_get(regex_name, compiled_regex);
}



int dfregexcache_cache(char* regex_name, void* compiled_regex) {
	return rbst_add(regex_name, compiled_regex);
}



void dfregexcache_free(void) {
	rbst_free();
}

void dfregexcache_dump(void) {
	rbst_dump();
}







